import 'package:flutter/material.dart';

class SamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.white,
        elevation: 0.0,
        centerTitle: true,
        title: Text(
          '发布成功',
          style: TextStyle(
              color: Colors.black,
              fontSize: 18.0,
              fontWeight: FontWeight.normal),
        ),
        leading: IconButton(
            icon: Image.asset('assets/images/nav_close.png'), onPressed: () {}),
      ),
      body: SamplePageContent(),
    );
  }
}

class SamplePageContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.only(top: 42.0),
      child: Column(
        children: <Widget>[
          Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Container(
                width: 52.0,
                height: 52.0,
                margin: EdgeInsets.only(left: 16.0),
                child: CircleAvatar(
                  backgroundImage: AssetImage("assets/images/avatar2.png"),
                ),
              ),
              Container(

                margin: EdgeInsets.only(left: 7.0),
                height: 48.0,
                child: Text('dddd',
                ),
                decoration: BoxDecoration(
                 
                ),
              )
            ],
          )
        ],
      ),
    );
  }
}


